package com.common.domainService;

import java.util.List;

import com.applicationLayer.formbean.CommentForm;

public interface ICommentService {


	/**
	 * Method used to get all comments
	 * @return
	 */
	public List <CommentForm> getAllComments();
	
	/**
	 * Method used to get comments on a path
	 * @param path_id
	 * @return
	 */
	public List<CommentForm> getPathComments(int path_id);
	
	/**
	 * Method used to get comments on application
	 * @return
	 */
	public List <CommentForm> getApplicationComments();
	
	/**
	 * Method used to get comments on covoitureur
	 * @param covoit_id
	 * @return
	 */
	public List <CommentForm> getCovoitureurComments(int covoit_id);
	
	/**
	 * Method used for adding a path comment
	 * @param id_covoit 
	 * @param id_path 
	 * @param co
	 */
	public void addPathComment(CommentForm coForm,int id_covoit, int id_path);
	
	/**
	 * Method used for adding a covoitureur comment
	 * @param id_covoit 
	 * @param id_receiver_covoit
	 * @param co
	 */
	public void addCovoitureurComment(CommentForm coForm,int id_covoit,int id_receiver_covoit);

	/**
	 * Method used for adding an application comment
	 * @param id_covoit 
	 * @param co
	 */
	public void addApplicationComment(CommentForm coForm, int id_covoit);

}
